package com.nananren.shiayn7;


import net.bytebuddy.dynamic.loading.InjectionClassLoader;

public class Context {
    public Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public String executeStrategy(String data) {
        return strategy.encrypt(data);
    }
}
